﻿using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using ProtoBuf;
using AC;

[System.Serializable]
[ProtoContract]
public class ExoSaveData {

	/*
	[ProtoMember(1)]
	private string DateOfSave = DateTime.Now.ToShortDateString();
	[ProtoMember(2)]
	private string TimeOfSave = DateTime.Now.ToShortTimeString();
	[ProtoMember(3)]
	private int currentChapter = 0;
	[ProtoMember(4)]
	private List<int> InventoryIDs;
	[ProtoMember(5)]
	private List<int> ProfileIDs;
	[ProtoMember(6)]
	private List<bool> Flags;
	[ProtoMember(7)]
	private string BackLog;

	public void setDateOfSave(){ DateOfSave = DateTime.Now.ToShortDateString(); }
	public void setTimeOfSave(){ TimeOfSave = DateTime.Now.ToShortTimeString(); }
	public void setCurrentChapter(int CurrentChapter){ currentChapter = CurrentChapter; }
	public void setInventoryIDs(List<int> inventoryIDs)
	{
		for(int i = 0; i < inventoryIDs.Count; i++)
			InventoryIDs.Add(inventoryIDs[i]);
	}
	public void setProfileIDs(List<int> profileIDs)
	{
		for(int i = 0; i < profileIDs.Count; i++)
			ProfileIDs.Add(profileIDs[i]);
	}
	public void setFlags(List<bool> flags)
	{
		for(int i = 0; i < flags.Count; i++)
			Flags.Add(flags[i]);
	}
	public void setBacklog(string Backlog){ BackLog = Backlog; }

	public string getDateOfSave(){ return DateOfSave; }
	public string getTimeOfSave(){ return TimeOfSave; }
	public int getCurrentChapter(){return currentChapter; }
	public List<int> getInventoryIDs(){ return InventoryIDs; }
	public List<int> getProfileIDs(){ return ProfileIDs; }
	public List<bool> getFlags(){ return Flags; }
	public string getBackLog(){return BackLog; }*/

	[ProtoMember(1)]
	public string DateOfSave{ get; set; }
	[ProtoMember(2)]
	public string TimeOfSave{ get; set; }
	[ProtoMember(3)]
	public int applicationLevel{ get; set; }
	[ProtoMember(4)]
	public int cameraIndex{ get; set; }
	[ProtoMember(5)]
	public int currentChapter{ get; set; }
	[ProtoMember(6)]
	public List<int> InventoryIDs{ get; set; }
	[ProtoMember(7)]
	public List<int> ProfileIDs{ get; set; }
	[ProtoMember(8)]
	public List<string> ProfileDescs{ get; set;}
	[ProtoMember(9)]
	public List<bool> boolFlags{get; set; }
	[ProtoMember(10)]
	public List<float> floatFlags{ get; set; }
	[ProtoMember(11)]
	public string BackLog{ get; set; }
}
